<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Slimore\Log\Writer | Slimore</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Slimore</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-Slimore.Log.html" title="Summary of Slimore\Log"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li>
						<a href="namespace-None.html">
							None						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.html">
							Slimore<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.Exception.html">
							Exception						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-Slimore.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Database.html">
							Database						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Debug.html">
							Debug						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Http.html">
							Http						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Image.html">
							Image						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.Log.html">
							Log						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Middleware.html">
							Middleware						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Mvc.html">
							Mvc						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Pagination.html">
							Pagination						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Upload.html">
							Upload						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-Slimore.Log.Writer.html">Writer</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Writer</h1>


	<div class="description">
	<p>Class Writer</p>
	</div>









	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-Slimore.html">Slimore</a>\<a href="namespace-Slimore.Log.html">Log</a><br>
		<b>Package:</b> Slimore\Log<br>

				<b>Author:</b>
				Pandao<br>
			<b>Located at</b> <a href="source-class-Slimore.Log.Writer.html#17-379" title="Go to source code">Slimore/Log/Writer.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#108-113" title="Go to source code">__construct</a>( )</code>

			<div class="description short">
				<p>Constructor</p>
			</div>

			<div class="description detailed hidden">
				<p>Constructor</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="set" id="_set">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_set">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#116-157" title="Go to source code">set</a>( <span>string|array <var>$key</var>,…</span>, <span>string <var>$value</var>,…</span> )</code>

			<div class="description short">
				<p>Settings</p>
			</div>

			<div class="description detailed hidden">
				<p>Settings</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var>,…</dt>
						<dd>null</dd>
						<dt><var>$value</var>,…</dt>
						<dd>null</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="setPath" id="_setPath">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setPath">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#160-175" title="Go to source code">setPath</a>( <span>string <var>$path</var></span> )</code>

			<div class="description short">
				<p>Setting logs path</p>
			</div>

			<div class="description detailed hidden">
				<p>Setting logs path</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$path</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getPath" id="_getPath">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getPath">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#178-186" title="Go to source code">getPath</a>( )</code>

			<div class="description short">
				<p>Get log files saved path</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log files saved path</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getLevel" id="_getLevel">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getLevel">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#189-197" title="Go to source code">getLevel</a>( )</code>

			<div class="description short">
				<p>Get log level</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log level</p>



					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getLabel" id="_getLabel">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getLabel">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#200-208" title="Go to source code">getLabel</a>( )</code>

			<div class="description short">
				<p>Get log label</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log label</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getMessage" id="_getMessage">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getMessage">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#211-219" title="Go to source code">getMessage</a>( )</code>

			<div class="description short">
				<p>Get log message content</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log message content</p>



					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getMessageFormat" id="_getMessageFormat">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getMessageFormat">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#222-230" title="Go to source code">getMessageFormat</a>( )</code>

			<div class="description short">
				<p>Get log message format</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log message format</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setMessageFormat" id="_setMessageFormat">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setMessageFormat">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#233-242" title="Go to source code">setMessageFormat</a>( <span>string <var>$format</var></span> )</code>

			<div class="description short">
				<p>Set log message format</p>
			</div>

			<div class="description detailed hidden">
				<p>Set log message format</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$format</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="setMessageFormatSearchs" id="_setMessageFormatSearchs">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setMessageFormatSearchs">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#245-254" title="Go to source code">setMessageFormatSearchs</a>( <span>array <var>$searchs</var></span> )</code>

			<div class="description short">
				<p>Set log message format searchs</p>
			</div>

			<div class="description detailed hidden">
				<p>Set log message format searchs</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$searchs</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getMessageFormatSearchs" id="_getMessageFormatSearchs">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getMessageFormatSearchs">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#257-266" title="Go to source code">getMessageFormatSearchs</a>( )</code>

			<div class="description short">
				<p>Get log message format searchs</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log message format searchs</p>



					<h4>Returns</h4>
					<div class="list">
						array<br>
						
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="defaultMessageFormatReplaces" id="_defaultMessageFormatReplaces">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_defaultMessageFormatReplaces">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#269-282" title="Go to source code">defaultMessageFormatReplaces</a>( )</code>

			<div class="description short">
				<p>Default log message format replaces</p>
			</div>

			<div class="description detailed hidden">
				<p>Default log message format replaces</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="setMessageFormatReplaces" id="_setMessageFormatReplaces">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setMessageFormatReplaces">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#285-294" title="Go to source code">setMessageFormatReplaces</a>( <span>array <var>$replaces</var></span> )</code>

			<div class="description short">
				<p>Set log message format replaces</p>
			</div>

			<div class="description detailed hidden">
				<p>Set log message format replaces</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$replaces</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getMessageFormatReplaces" id="_getMessageFormatReplaces">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getMessageFormatReplaces">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#297-305" title="Go to source code">getMessageFormatReplaces</a>( )</code>

			<div class="description short">
				<p>Get log message format repalces</p>
			</div>

			<div class="description detailed hidden">
				<p>Get log message format repalces</p>



					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="messageFormatParser" id="_messageFormatParser">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_messageFormatParser">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#308-322" title="Go to source code">messageFormatParser</a>( )</code>

			<div class="description short">
				<p>Log message format parser</p>
			</div>

			<div class="description detailed hidden">
				<p>Log message format parser</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="writeBefore" id="_writeBefore">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_writeBefore">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#325-334" title="Go to source code">writeBefore</a>( <span>callable <var>$callback</var></span> )</code>

			<div class="description short">
				<p>Handle for writing log before</p>
			</div>

			<div class="description detailed hidden">
				<p>Handle for writing log before</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$callback</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="write" id="_write">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_write">#</a>
			<code><a href="source-class-Slimore.Log.Writer.html#337-378" title="Go to source code">write</a>( <span>mixed <var>$content</var></span>, <span>integer <var>$level</var></span> )</code>

			<div class="description short">
				<p>Write to log file</p>
			</div>

			<div class="description detailed hidden">
				<p>Write to log file</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$content</var></dt>
						<dd></dd>
						<dt><var>$level</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
			</table>
		</div>











		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="level" id="$level">
			<td class="attributes"><code>
				protected  
				integer
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#25-28" title="Go to source code"><var>$level</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$level" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="message" id="$message">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#30-33" title="Go to source code"><var>$message</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$message" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="filename" id="$filename">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#35-38" title="Go to source code"><var>$filename</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$filename" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="resource" id="$resource">
			<td class="attributes"><code>
				protected  
				resource
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#40-43" title="Go to source code"><var>$resource</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$resource" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="messageOutput" id="$messageOutput">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#45-48" title="Go to source code"><var>$messageOutput</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$messageOutput" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="label" id="$label">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#50-53" title="Go to source code"><var>$label</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$label" class="anchor">#</a>
					<code><span class="php-quote">'DEBUG'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="path" id="$path">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#55-58" title="Go to source code"><var>$path</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$path" class="anchor">#</a>
					<code><span class="php-quote">'../app/logs'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="dateFormat" id="$dateFormat">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#61-64" title="Go to source code"><var>$dateFormat</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$dateFormat" class="anchor">#</a>
					<code><span class="php-quote">'Y-m-d'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="extension" id="$extension">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#66-69" title="Go to source code"><var>$extension</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$extension" class="anchor">#</a>
					<code><span class="php-quote">'log'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="messageFormat" id="$messageFormat">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#71-74" title="Go to source code"><var>$messageFormat</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$messageFormat" class="anchor">#</a>
					<code><span class="php-quote">'[%label%][#][%date%] %message%'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="messageFormatSearchs" id="$messageFormatSearchs">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#76-79" title="Go to source code"><var>$messageFormatSearchs</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$messageFormatSearchs" class="anchor">#</a>
					<code>[<span class="php-quote">'%label%'</span>, <span class="php-quote">'[#]'</span>, <span class="php-quote">'%date%'</span>, <span class="php-quote">'%message%'</span>]</code>
				</div>
			</td>
		</tr>
		<tr data-order="messageFormatReplaces" id="$messageFormatReplaces">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#81-84" title="Go to source code"><var>$messageFormatReplaces</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$messageFormatReplaces" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="writeBeforeHandle" id="$writeBeforeHandle">
			<td class="attributes"><code>
				public  
				null|callable
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#86-89" title="Go to source code"><var>$writeBeforeHandle</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$writeBeforeHandle" class="anchor">#</a>
					<code><span class="php-keyword1">null</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="customMessageFormatParser" id="$customMessageFormatParser">
			<td class="attributes"><code>
				public  
				boolean
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#91" title="Go to source code"><var>$customMessageFormatParser</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$customMessageFormatParser" class="anchor">#</a>
					<code><span class="php-keyword1">false</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="levels" id="$levels">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Log.Writer.html#93-105" title="Go to source code"><var>$levels</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$levels" class="anchor">#</a>
					<code>[
    <span class="php-num">1</span> =&gt; <span class="php-quote">'EMERGENCY'</span>,
    <span class="php-num">2</span> =&gt; <span class="php-quote">'ALERT'</span>,
    <span class="php-num">3</span> =&gt; <span class="php-quote">'CRITICAL'</span>,
    <span class="php-num">4</span> =&gt; <span class="php-quote">'ERROR'</span>,
    <span class="php-num">5</span> =&gt; <span class="php-quote">'WARNING'</span>,
    <span class="php-num">6</span> =&gt; <span class="php-quote">'NOTICE'</span>,
    <span class="php-num">7</span> =&gt; <span class="php-quote">'INFO'</span>,
    <span class="php-num">8</span> =&gt; <span class="php-quote">'DEBUG'</span>
]</code>
				</div>
			</td>
		</tr>
			</table>
		</div>






</div>
	</div>

	<div id="footer">
		Slimore API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
